#pragma once

#include "BibliothequeBRepP.h"
#include "BibliothequeLGB.h"

// CBDCreationCylindre dialog

class CBDCreationCylindre : public CDialog
{
	DECLARE_DYNAMIC(CBDCreationCylindre)

public:
	CBDCreationCylindre(CWnd* pParent = NULL);   // standard constructor
	virtual ~CBDCreationCylindre();
	BOOL OnInitDialog();

// Dialog Data
	enum { IDD = IDD_DIALOG_CREATION_CYLINDRE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

private:
	SolidesP	LeCylindre ;
	bool		Debut ;
	double mXCentre1;
	double mYCentre1;
	double mZCentre1;
	double mXCentre2;
	double mYCentre2;
	double mZCentre2;
	double mRayon;
	void EffacerRecreerAfficherCylindre ();
	afx_msg void OnEnChangeEditXcentre1();
	afx_msg void OnEnChangeEditYcentre1();
	afx_msg void OnEnChangeEditZcentre1();
	afx_msg void OnEnChangeEditXcentre2();
	afx_msg void OnEnChangeEditYcentre2();
	afx_msg void OnEnChangeEditZcentre2();
	afx_msg void OnEnChangeEditRayon();
	afx_msg void OnBnClickedCancel();
private:
	// Attribut du solide
	AttributsSolides	mAS;
private:
	// Attribut pour des faces du solide
	AttributsFaces		mAF;
	afx_msg void OnBnClickedBoutonCouleur();
};
